home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / +look_here_1st!+ / handy_tools / tinymeter / install < prev    next >
Text File  |  1997-02-27  |  13KB  |  404 lines

  1. ; Installer Script for TinyMeter V4.30+
  2.  
  3. (set TM_muimin             13)
  4. (set TM_muiassign          "MUI:")
  5.  
  6. ;*******************************************************************************************
  7. ; ENGLISH
  8. ;
  9. (set TM_def_lang          0)
  10. (set TM_where_main        "Where should I copy the TinyMeter main program ?")
  11. (set TM_where_main_help   "SYS:WBStartup is the best place. Simply click proceed.")
  12. (set TM_where_prefs       "Where should I copy the TinyMeter preferences program?")
  13. (set TM_where_prefs_help  "SYS:Prefs is the best place, since TinyMeter can only call it, when its there.")
  14. (set TM_which_lang        "Which languages should be installed?")
  15. (set TM_which_icons       "Which icons do you use")
  16. (set TM_which_install     "What should be installed?")
  17. (set TM_choic_1           "Example settings")
  18. (set TM_choic_2           "Fonts for Clocks")
  19. (set TM_choic_3           "Background patterns")
  20. (set TM_choic_4           "Pictograms for launchermenus")
  21. (set TM_choic_5           "Documentation")
  22. (set TM_where_picto       "Where should the pictograms be installed?")
  23. (set TM_where_picto_help  "Prefs:Pictograms is the best place. Simply click proceed.")
  24. (set TM_where_docs        "Where should the documentation be installed?")
  25. (set TM_where_docs_help   "HELP: is the best place. The HELP key is only available within the preferences program when you put it here. Simply click proceed.")
  26. (set TM_where_fonts       "Where should the fonts be installed?")
  27. (set TM_where_fonts_help  "FONTS: is the best place. The AmigaOS normally can only use fonts which are installed here. Simply click proceed.")
  28. (set TM_where_back        "Where should the background patterns be installed?\n (example settings-file uses SYS:Prefs/Patterns!)")
  29. (set TM_insta_files       "Installing the files...")
  30. (set TM_insta_main        "Installing TinyMeter...")
  31. (set TM_insta_catalog     "Installing catalog...")
  32. (set TM_insta_newicons    "Installing NewIcons®...")
  33. (set TM_insta_examples    "Installing example settings...")
  34. (set TM_insta_fonts       "Installing fonts...")
  35. (set TM_insta_backs       "Installing patterns...")
  36. (set TM_insta_pictos      "Installing pictograms...")
  37. (set TM_insta_docs        "Installing documentation...")
  38. (set TM_insta_def         "Installing...")
  39. (set TM_messa_exit        "Have phun with this nice piece of soft!!!\n\nNow you should start TinyMeter, setup the position and size and press S to save these settings.\n\nAfter that, start the TinyMeter preferences to setup TinyMeter to your personal taste.\n\nIf there are any problems, don't hesitate to contact the author!")
  40. (set TM_nomui              "\n\nCould not find the MUI: assign.\n\nMake sure, that MUI3.2+ is installed correctly.")
  41. (set TM_oldmui             "\n\nTinyMeter V4.30 needs at least MUI 3.2!\n\nPlease update your MUI system. You can find the actual versions on the Aminet.")
  42.  
  43. ;*******************************************************************************************
  44. ; DEUTSCH
  45. ;
  46. (if (= @language "deutsch")
  47.     (
  48.     (set TM_def_lang          1)
  49.     (set TM_where_main        "Wohin soll das Hauptprogramm kopiert werden?")
  50.     (set TM_where_main_help   "SYS:WBStartup ist der Beste Platz.")
  51.     (set TM_where_prefs       "Wohin soll das Einstellungsprogramm kopiert werden?")
  52.     (set TM_where_prefs_help  "SYS:Prefs ist der Beste Platz.")
  53.     (set TM_which_lang        "Welche Sprachen sollen installiert werden?")
  54.     (set TM_which_icons       "Welche Icons sollen benutzt werden?")
  55.     (set TM_which_install     "Was soll installiert werden?")
  56.     (set TM_choic_1           "Beispieleinstellungen")
  57.     (set TM_choic_2           "Zeichensätze für die Uhr")
  58.     (set TM_choic_3           "Hintergrundbilder")
  59.     (set TM_choic_4           "Piktogramme für die Schnellstarter")
  60.     (set TM_choic_5           "Dokumentation")
  61.     (set TM_where_picto       "Wohin sollen die Piktogramme opiert werden?")
  62.     (set TM_where_picto_help  "Prefs:Pictograms ist der Beste Platz.")
  63.     (set TM_where_docs        "Wohin soll die Doumentation kopiert werden?")
  64.     (set TM_where_docs_help   "HELP: ist der Beste Platz.")
  65.     (set TM_where_fonts       "Wohin sollen die Zeichensätze opiert werden?")
  66.     (set TM_where_fonts_help  "FONTS: ist der Beste Platz..")
  67.     (set TM_where_back        "Wohin sollen die Hintergrundbilder opiert werden?\n (Die Beispiel einstellungen benötigen diese Bilder!)")
  68.     (set TM_insta_files       "Installiere Dateien...")
  69.     (set TM_insta_main        "Installiere TinyMeter...")
  70.     (set TM_insta_catalog     "Installiere Sprachenkataloge...")
  71.     (set TM_insta_newicons    "Installiere NewIcons®...")
  72.     (set TM_insta_examples    "Installiere Beispieleinstellungen...")
  73.     (set TM_insta_fonts       "Installiere Zeichensätze...")
  74.     (set TM_insta_backs       "Installiere Hintergrundbilder...")
  75.     (set TM_insta_pictos      "Installiere Piktogramme...")
  76.     (set TM_insta_docs        "Installiere Doumentation...")
  77.     (set TM_insta_def         "Installiere...")
  78.     (set TM_messa_exit        "Nun viel Spaß mit diesem Programm!!!\n\nNun sollte man TinyMeter starten, die Position und Größe einstellen, S druecken und mit dem Einstellungsprogramm weitere Einstellungen vornehmen.\nBei Problemen ist der Author immer über EMail oder auf IRC erreichbar.")
  79.     (set TM_nomui              "\n\nKonnte den MUI: Assign nicht finden.\n\nStellen Sie sicher, daß MUI 3.2+ korrekt installiert wurde.")
  80.     (set TM_oldmui             "\n\nTinyMeter 4.30 benötigt mindestens MUI 3.2!\n\nBitte aktualisieren Sie ihr MUI-System. Die aktuellen Versionen finden Sie auf dem Aminet.")
  81.     )
  82. )
  83.  
  84. ;*******************************************************************************************
  85. ; FRANÇAIS
  86. ;
  87. (if (= @language "français")
  88.     (
  89.     (set TM_def_lang          2)
  90.     (set TM_where_main        "Où voulez vous installer TinyMeter?")
  91.     (set TM_where_main_help   "SYS:WBStartup est la meilleur destination.")
  92.     (set TM_where_prefs       "Où voulez vous installer le programme de réglage?")
  93.     (set TM_where_prefs_help  "SYS:Prefs es la meilleur destination.")
  94.     (set TM_which_lang        "Quelle langues voulez vous installer?")
  95.     (set TM_which_icons       "Quelle type d´icônes vous utiliséz?")
  96.     (set TM_which_install     "Qu´est-ce qu´il faut installer?")
  97.     (set TM_choic_1           "Examples")
  98.     (set TM_choic_2           "Polices pour l´horloge")
  99.     (set TM_choic_3           "Images de fond")
  100.     (set TM_choic_4           "Pictogrammes pour les lanceurs")
  101.     (set TM_choic_5           "Documentation")
  102.     (set TM_where_picto       "Où voulez vous installer les pictogrammes?")
  103.     (set TM_where_picto_help  "Prefs:Pictograms est la meilleur destination.")
  104.     (set TM_where_docs        "Où voulez vous installer la documentation?")
  105.     (set TM_where_docs_help   "HELP: est la meilleur destination.")
  106.     (set TM_where_fonts       "Où voulez vous installer les polices?")
  107.     (set TM_where_fonts_help  "FONTS: est la meilleur destination.")
  108.     (set TM_where_back        "Où voulez vous installer les images de fond?")
  109.     (set TM_insta_files       "Installation en cours...")
  110.     (set TM_insta_main        "Installation en cours...")
  111.     (set TM_insta_catalog     "Installation en cours...")
  112.     (set TM_insta_newicons    "Installation en cours...")
  113.     (set TM_insta_examples    "Installation en cours...")
  114.     (set TM_insta_fonts       "Installation en cours...")
  115.     (set TM_insta_backs       "Installation en cours...")
  116.     (set TM_insta_pictos      "Installation en cours...")
  117.     (set TM_insta_docs        "Installation en cours...")
  118.     (set TM_insta_def         "Installation en cours...")
  119.     (set TM_messa_exit        "S´il y a des problèmes, n´hésitez pas de contacter l´auteur!")
  120.     )
  121. )
  122.  
  123. (if (exists TM_muiassign (noreq))
  124.     (
  125.     (set TM_muiverrev (getversion "MUI:Libs/muimaster.library"))
  126.     (set TM_muiver    (/ TM_muiverrev 65536))
  127.     (if (>= TM_muiver TM_muimin)
  128.         (
  129.  
  130.         (set TM_CPU (database "cpu"))
  131.  
  132.         (set TM_FASTER 0)
  133.         (if (= TM_CPU "68020")
  134.             (set TM_FASTER 1)
  135.         )
  136.         (if (= TM_CPU "68030")
  137.             (set TM_FASTER 1)
  138.         )
  139.         (if (= TM_CPU "68040")
  140.             (set TM_FASTER 1)
  141.         )
  142.         (if (= TM_CPU "68060")
  143.             (set TM_FASTER 1)
  144.         )
  145.  
  146.         (set TM_default-dest (""))
  147.  
  148.         (set TM_source-file "TinyMeter")
  149.         (set TM_source-file_info "TinyMeter.info")
  150.         (set TM_source-file_fast "TinyMeter.020")
  151.  
  152.         (set TM_destdir
  153.             (askdir
  154.                 (prompt TM_where_main)
  155.                 (help TM_where_main_help)
  156.                 (default "SYS:WBStartup/")
  157.             )
  158.         )
  159.         (set TM_prefsdir
  160.             (askdir
  161.                 (prompt TM_where_prefs)
  162.                 (help TM_where_prefs_help)
  163.                 (default "SYS:Prefs/")
  164.             )
  165.         )
  166.         (set langchoice
  167.             (askoptions
  168.                 (prompt TM_which_lang)
  169.                 (help @akoptions_help)
  170.                 (choices "Deutsch" "Français" "Italiano" "Polski")
  171.                 (default TM_def_lang)
  172.             )
  173.         )
  174.  
  175.         (set iconchoice
  176.             (askchoice
  177.                 (prompt TM_which_icons)
  178.                 (help @askchoice_help)
  179.                 (choices "MagicWB®" "NewIcons®")
  180.                 (default 0)
  181.             )
  182.         )
  183.  
  184.         (set instchoice
  185.             (askoptions
  186.                 (prompt TM_which_install)
  187.                 (help @ackoptions_help)
  188.                 (choices TM_choic_1 TM_choic_2 TM_choic_3 TM_choic_4 TM_choic_5)
  189.                 (default 8)
  190.             )
  191.         )
  192.  
  193.         (if (<> 0 (BITAND instchoice 8))
  194.             (set TM_picdir
  195.             (askfile
  196.                 (prompt TM_where_picto)
  197.                 (help TM_where_picto_help)
  198.                 (default "SYS:Prefs/Pictograms")
  199.             )
  200.             )
  201.         )
  202.  
  203.         (if (<> 0 (BITAND instchoice 16))
  204.             (set TM_helpdir
  205.                 (askdir
  206.                     (prompt TM_where_docs)
  207.                     (help TM_where_docs_help)
  208.                     (default "HELP:")
  209.                 )
  210.             )
  211.         )
  212.  
  213.         (if (<> 0 (BITAND instchoice 2))
  214.             (set TM_fontdir
  215.                 (askdir
  216.                     (prompt TM_where_fonts)
  217.                     (help TM_where_fonts_help)
  218.                     (default "FONTS:")
  219.                 )
  220.             )
  221.         )
  222.  
  223.         (if (<> 0 (BITAND instchoice 4))
  224.             (set TM_pattdir
  225.                 (askdir
  226.                     (prompt TM_where_back)
  227.                     (help @askdir_help)
  228.                     (default "SYS:Prefs/")
  229.                 )
  230.             )
  231.         )
  232.  
  233.         (if (= TM_FASTER 0)
  234.             (copyfiles
  235.                 (prompt TM_insta_files)
  236.                 (help @copyfiles_help)
  237.                 (source TM_source-file)
  238.                 (infos)
  239.                 (newname "TinyMeter")
  240.                 (dest TM_destdir)
  241.             )
  242.             (
  243.             (copyfiles
  244.                 (prompt TM_insta_files)
  245.                 (help @copyfiles_help)
  246.                 (source TM_source-file_fast)
  247.                 (newname "TinyMeter")
  248.                 (dest TM_destdir)
  249.             )
  250.             (copyfiles
  251.                 (prompt TM_insta_files)
  252.                 (help @copyfiles_help)
  253.                 (source TM_source-file_info)
  254.                 (dest TM_destdir)
  255.             )
  256.             )
  257.         )
  258.  
  259.         (copyfiles
  260.             (prompt TM_insta_main)
  261.             (help @copyfiles_help)
  262.             (source "Prefs/TinyMeter")
  263.             (infos)
  264.             (newname "TinyMeter")
  265.             (dest TM_prefsdir)
  266.         )
  267.  
  268.         (if (<> 0 (BITAND langchoice 1))
  269.             (copyfiles
  270.                 (prompt TM_insta_catalog)
  271.                 (help @copyfiles_help)
  272.                 (source "Catalogs/deutsch/TinyMeterPrefs.catalog")
  273.                 (dest "LOCALE:Catalogs/deutsch/")
  274.             )
  275.         )
  276.         (if (<> 0 (BITAND langchoice 2))
  277.             (copyfiles
  278.                 (prompt TM_insta_catalog)
  279.                 (help @copyfiles_help)
  280.                 (source "Catalogs/français/TinyMeterPrefs.catalog")
  281.                 (dest "LOCALE:Catalogs/français/")
  282.             )
  283.         )
  284.         (if (<> 0 (BITAND langchoice 4))
  285.             (copyfiles
  286.                 (prompt TM_insta_catalog)
  287.                 (help @copyfiles_help)
  288.                 (source "Catalogs/italiano/TinyMeterPrefs.catalog")
  289.                 (dest "LOCALE:Catalogs/italiano/")
  290.             )
  291.         )
  292.         (if (<> 0 (BITAND langchoice 8))
  293.             (copyfiles
  294.                 (prompt TM_insta_catalog)
  295.                 (help @copyfiles_help)
  296.                 (source "Catalogs/polski/TinyMeterPrefs.catalog")
  297.                 (dest "LOCALE:Catalogs/polski/")
  298.             )
  299.         )
  300.         (if (<> 0 (BITAND iconchoice 1))
  301.             (copyfiles
  302.                 (prompt TM_insta_newicons)
  303.                 (help @copyfiles_help)
  304.                 (source "ArtWork/newicons/TinyMeter.info")
  305.                 (dest TM_destdir)
  306.             )
  307.         )
  308.         (if (<> 0 (BITAND iconchoice 1))
  309.             (copyfiles
  310.                 (prompt TM_insta_newicons)
  311.                 (help @copyfiles_help)
  312.                 (source "ArtWork/newicons/TinyMeterPrefs.info")
  313.                 (newname "TinyMeter.info")
  314.                 (dest TM_prefsdir)
  315.             )
  316.         )
  317.  
  318.         (if (<> 0 (BITAND instchoice 1))
  319.             (copyfiles
  320.                 (prompt TM_insta_examples)
  321.                 (help @copyfiles_help)
  322.                 (source "Examples/MagicWB.tm")
  323.                 (newname "TinyMeter")
  324.                 (dest "ENV:")
  325.             )
  326.         )
  327.  
  328.         (if (<> 0 (BITAND instchoice 1))
  329.             (copyfiles
  330.                 (prompt TM_insta_examples)
  331.                 (help @copyfiles_help)
  332.                 (source "Examples/MagicWB.tm")
  333.                 (newname "TinyMeter")
  334.                 (dest "ENVARC:")
  335.             )
  336.         )
  337.  
  338.         (if (<> 0 (BITAND instchoice 2))
  339.             (copyfiles
  340.                 (prompt TM_insta_fonts)
  341.                 (help @copyfiles_help)
  342.                 (source "ArtWork/Fonts/")
  343.                 (all)
  344.                 (dest TM_fontdir)
  345.             )
  346.         )
  347.  
  348.         (if (<> 0 (BITAND instchoice 4))
  349.             (copyfiles
  350.                 (prompt TM_insta_backs)
  351.                 (help @copyfiles_help)
  352.                 (source "ArtWork/Patterns/")
  353.                 (all)
  354.                 (dest TM_pattdir)
  355.             )
  356.         )
  357.  
  358.         (if (<> 0 (BITAND instchoice 16))
  359.             (copyfiles
  360.                 (prompt TM_insta_docs)
  361.                 (help @copyfiles_help)
  362.                 (source "TinyMeter.guide")
  363.                 (infos)
  364.                 (dest TM_helpdir)
  365.             )
  366.         )
  367.  
  368.         (if (<> 0 (BITAND instchoice 8))
  369.             (copyfiles
  370.                 (prompt TM_insta_pictos)
  371.                 (help @copyfiles_help)
  372.                 (source "ArtWork/Pictogram/")
  373.                 (all)
  374.                 (dest TM_picdir)
  375.             )
  376.         )
  377.  
  378.         (copylib
  379.             (prompt TM_insta_def)
  380.             (help @copylib_help)
  381.             (source "Libs/screennotify.library")
  382.             (dest "LIBS:")
  383.             (confirm)
  384.         )
  385.  
  386.         (copylib
  387.             (prompt TM_insta_def)
  388.             (help @copylib_help)
  389.             (source "Libs/wbstart.library")
  390.             (dest "LIBS:")
  391.             (confirm)
  392.         )
  393.  
  394.         (exit
  395.             TM_messa_exit
  396.         )
  397.         )
  398.         (exit TM_oldmui (quiet))
  399.     )
  400.     )
  401.     (exit TM_nomui (quiet))
  402. )
  403. (exit)
  404.